<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:acegi="http://sourceforge.net/projects/jsf-comp/acegijsf">

    <f:view>
        <f:loadBundle var="text" basename="#{basePage.bundleName}"/>
        <head>
            <title>#{text['mainMenu.title']}</title>
            <meta name="menu" content="MainMenu"/>
            <meta name="heading" content="#{text['mainMenu.heading']}"/>
        </head>

        <p>#{text['mainMenu.message']}</p>

        <div class="separator"></div>

        <h:form id="editUser">
            <table width="100%">
                <tr>
                    <td width="50%">
                        <ul class="glassList">
                            <li>
                                <h:commandLink value="#{text['menu.user']}" action="#{employeeForm.edit}"/>
                            </li>
                            <li>
                                <h:outputLink value="../suarte-web/catalogs/exchangeRates.html">
                                    <h:outputText value="#{text['menu.catalogs.exchangeRates']}"/>
                                </h:outputLink>
                            </li>
                            <li>
                                <h:outputLink value="../suarte-web/operations/quotations.html">
                                    <h:outputText value="#{text['menu.operation.quotations']}"/>
                                </h:outputLink>
                            </li>
                            <li>
                                <h:outputLink value="../suarte-web/operations/workOrders.html">
                                    <h:outputText value="#{text['menu.operation.workOrders']}"/>
                                </h:outputLink>
                            </li>
                            <li>
                                <h:outputLink value="../suarte-web/operations/remissions.html">
                                    <h:outputText value="#{text['menu.operation.remissions']}"/>
                                </h:outputLink>
                            </li>
                            <li>
                                <h:outputLink value="../suarte-web/operations/invoices.html">
                                    <h:outputText value="#{text['menu.operation.invoices']}"/>
                                </h:outputLink>
                            </li>
                            <li>
                                <h:outputLink value="../suarte-web/operations/payments.html">
                                    <h:outputText value="#{text['menu.operation.payments']}"/>
                                </h:outputLink>
                            </li>
                        </ul>
                    </td>
                    <td>
                        <ul class="glassList">
                            <li>
                                <h:commandLink value="#{text['report.statusWorkOrder']}" onclick="return printMainReport('rpt_estados_ordenes.rptdesign');"/>
                            </li>
                            <li>
                                <h:commandLink value="#{text['report.quotationsVendor']}" onclick="return printMainReport('rpt_cotizaciones_vendedor.rptdesign');"/>
                            </li>
                            <li>
                                <h:commandLink value="#{text['report.companyBalance']}" onclick="return printMainReport('rpt_estado_cuenta.rptdesign');"/>
                            </li>
                            <!--li>
                                <a href="FlujoOperacionSuArte.pdf" target="_blank">#{text['document.presentation']}</a>
                            </li>
                            <li>
                                <a href="manualSuarte.pdf" target="_blank">#{text['document.manual']}</a>
                            </li-->
                        </ul>
                    </td>
                </tr>
            </table>
        </h:form>
        <script type="text/javascript">
                                    function printMainReport(report) {
                                        window.open('/birt-viewer/frameset?__report=' + report, 'SuArte', 'height=700,width=800,status=yes,toolbar=no,menubar=yes,location=no,resizable=yes');
                                        return false;
                                    }
        </script>
    </f:view>
</html>
